<template>
  <div>
    <div>---------role manage page-----------</div>
    <div>
      <Button type="primary" @click="getAllRoles">查看所有角色</Button>
    </div>
  </div>
</template>

<script>
import axios from 'axios';
export default {
  name: 'app',
  data(){
    return {
      data: ""
    }
  },
  methods: {
    getAllRoles(){
      axios({
        method: "get",
        url: "/api/rms/loginClient/menusList",
        headers: {
          "Content-Type": "application/json;charset=UTF-8"
        }
      }).then(res => {
        this.data = res.data;
      }).catch(function(error){

      });
    }
  }
}
</script>

<style>

</style>
